package com.shermanzhou.plugin.demo;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * @author zhouchaoqun
 * @date 2018/9/5 下午3:50
 */
@Mojo(name = "demo-plugin")
public class DemoPlugin extends AbstractMojo {

    @Parameter
    private String name;

    @Parameter
    private String age;

    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info(String.format("name is %s, age is %s", name, age));
    }
}
